package com.example.testdemo.resources;

import org.andengine.opengl.font.Font;
import org.andengine.opengl.font.FontFactory;

import android.graphics.Color;
import android.graphics.Typeface;

import com.example.testdemo.TankGameActivity;

public class SplashResources extends BaseResources {
    public Font mFont;

    public SplashResources(TankGameActivity activity) {
        super(activity);
    }

    @Override
    public void load(int resources) {
        // font
        mFont = FontFactory.create(mActivity.getFontManager(),
                mActivity.getTextureManager(), 256, 256,
                Typeface.create(Typeface.DEFAULT, Typeface.BOLD), 32,
                Color.WHITE);
        mFont.load();
    }

    @Override
    public void unload(int resources) {
        mFont.unload();
    }
}
